package com.adu.demo.service.Impl;

import java.util.List;
import com.adu.demo.domain.BookTag;
import com.adu.demo.mapper.BookTagMapper;
import com.adu.demo.service.IBookTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
                                            
@Service
public class BookTagService implements IBookTagService{
    @Autowired
    private BookTagMapper booktagMapper;

    @Override
    public List<BookTag> getList(BookTag booktag){
        return booktagMapper.getList(booktag);
    }
    @Override
    public BookTag getById(Long id){
        return booktagMapper.getById(id);
    }
    @Override
    public int save(BookTag booktag){
        return booktagMapper.save(booktag);
    }
    @Override
    public int deleteById(Long id){
        return booktagMapper.deleteById(id);
    }
    @Override
    public int deleteByIds(Long[] ids){
        return  booktagMapper.deleteByIds(ids);
    }
    @Override
    public int update(BookTag booktag){
        return booktagMapper.update(booktag);
    }
}